package com.qd.panda.etc.dto.resp;

import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 查询授权结果返回值
 *
 * @author sjk
 */
@Data
@Accessors(chain = true)
@ToString
public class SearchResponseDTO{
    private static final Integer AUTHORIZED=1;
    private static final Integer UNAUTHORIZED=2;
    /**
     * 授权结果 Integer 1-已授权 2-未授权
     */
    private Integer authResult;
    /**
     * 授权时间 String yyyy-MM-ddTHH:mm:ss
     * authResult=1
     * 时必填
     */
    private String authTime;
    /**
     * 接收时间 String yyyy-MM-ddTHH:mm:ss
     */
    private String receiveTime;
    /**
     * Etc卡号 String 20位 是
     */
    private String cardId;

    public boolean isAuth(){
        return authResult.equals(AUTHORIZED);
    }
    public void freeData() {
        this.authResult = null;
        this.authTime = null;
        this.receiveTime = null;
        this.cardId = null;

    }

}